<?php

namespace app\api\controller;

use app\common\controller\Api;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
        //导航
        $navList = [
            [
                'title' => '客官分享',
                'img' => cdnurl('/assets/web/home/nav-1.png'),
                'path' => '/pages/settle/authentication?title=客官分享&is_share=1',
            ],
            [
                'title' => '认证专区',
                'img' => cdnurl('/assets/web/home/nav-2.png'),
                'path' => '/pages/settle/authentication?title=认证专区&check_state=1',
            ],
            [
                'title' => '客官意向',
                'img' => cdnurl('/assets/web/home/nav-3.png'),
                'path' => '/pages/mine/wish/index',
            ],
            [
                'title' => '玩法攻略',
                'img' => cdnurl('/assets/web/home/nav-4.png'),
                'path' => '/pages/home/playing',
            ]
        ];

        $this->success('请求成功',[
            'navList' => $navList
        ]);
    }
}
